<?php
use yii\helpers\Html;
use yii\helpers\Url;
?>
<!-- 你的html代码 -->
<div class="page" id="page_login"><!--指定的id用于区分不同的页被加载-->

        <header class="bar bar-nav" style="background: #1CABED;width: 100%;">
            <a class="icon  pull-left icon-left back" href="#" data-no-cache="true" style="color: #ffffff"></a>
            <a class="icon  pull-right icon-refresh script_refresh" style="color: #ffffff"></a>
            <h1  class="title" >用户登录</h1>

        </header>
    <div class="bar bar-header-secondary">
        <a class="button button-link button-nav pull-right active mm">登录</a>
        <a style="margin: 0 1.5rem;color: #ADADAD;" class="button button-link button-nav pull-right yz">动态验证登录</a>
        <a style="color: #ADADAD;" href="<?=Url::to(['/h5cargo/nologinindex/register'])?>"  class="button button-link button-nav pull-right">注册 </a>
    </div>

    <div class="content">
        <div class="login-list">
            <ul>
                <li><input class="c-border user_phone" type="text" placeholder="手机号" maxlength="11" name="phone"></li>
                <li>
                    <input  class="c-border login-list-mm user_pass" type="password" placeholder="登陆密码" title="1"  name="password">
                </li>
                <li class="remember_div">
                   <!-- <input  class="remember_user_pass" type="checkbox">-->
                    <span name="0" class="remember_user_pass" style="border-radius: 100%;display: inline-block;border: solid 1px #020202;width: 13px;height: 13px;margin-left: 10px;vertical-align: middle;"></span>
                    <span>记住用户名和密码</span>
                </li>
                <li>
                    <div class="c-border login-list-yz">
                        <input class="c-border" type="text"  placeholder="输入验证码" id="login-list-yz-eq0">
                        <button class="bottn get-yz" >获取验证码</button>
                        <div class="clear"></div>
                    </div>
                </li>

                <!-- <li class="login-list-a"><a>忘记密码</a><a class="yz" disabled>短信验证登陆</a></li>-->
                <li class="login-list-b"><a class="bottn" id="dl">提交</a><div class="clear"></div></li>
            </ul>
        </div>
    </div>

</div>
<script type="text/javascript">
    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }
    var return_url = getQueryString('return_url');
    var jinstring =  window.location.hash;
    if(jinstring){
        var parkIndexUrl = return_url+jinstring;
    }else{
        var parkIndexUrl = return_url;
    }
   if(return_url==null){
       var parkIndexUrl ="<?=Url::to(['/h5cargo/index/parkindex'])?>#page_parkIndex";
   }

</script>
